import request from "@/utils/request.js";

export const chatService= (model) =>{
    return request.get("/chatgpt/generate",{params:{"model":model}})
}
export const chatStreamService= () =>{
     return request.get("/chatgpt/getFluxUrl")
}
export const openAiImageService= (prompt) =>{
    return request.get('/chatgpt/generateImage',{params:{"prompt":prompt}})
}

export const openAiTTSService = (text) =>{
    return request.get('chatgpt/TTS',{params:{"text":text}})
}